Skip to content

bug-fix: 修复自定义format包含数字提示格式错误的问题#70

Open
LanFly wants to merge 1 commit intolayui:masterfrom
LanFly:master
Open

bug-fix: 修复自定义format包含数字提示格式错误的问题#70
LanFly wants to merge 1 commit intolayui:masterfrom
LanFly:master

Conversation

@LanFly
Copy link

@LanFly LanFly commented Mar 28, 2018

format: 'yyyy-MM-dd 23:59:59'

如上所示,当自定义format中包含其它字符,比如包含数字,指定默认时分秒,会提示格式错误。
原因是生成正则时只考虑了ymd这些正常的格式,而字母数字下划线这些不需要加'\'。
目前我修改了生成正则的函数,以支持这些额外的格式要求。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant